﻿using Vben.Core.Module.Sys;

namespace Vben.Core.Common;

public class XuserUtil
{
    public static SysOrg getUser()
    {
        var user = App.GetService<IUserManager>();
        return new SysOrg(user.UserId, user.Name);
    }

    public static String getUserId()
    {
        String userId = null;
        var user = App.GetService<IUserManager>();
        if (user != null)
        {
            userId = user.UserId;
        }
        return userId;
    }

}